from django.urls import path
from . import views

app_name = 'blog'

urlpatterns = [
    path('', views.article_list, name='article_list'),
    path('article/<slug:slug>/', views.article_detail, name='article_detail'),
    path('category/<slug:slug>/', views.category_detail, name='category_detail'),
    path('tag/<slug:slug>/', views.tag_detail, name='tag_detail'),
    path('create/', views.article_create, name='article_create'),
    path('edit/<slug:slug>/', views.article_edit, name='article_edit'),
    path('delete/<slug:slug>/', views.article_delete, name='article_delete'),
    path('api/markdown-preview/', views.markdown_preview, name='markdown_preview'),
    path('api/upload-image/', views.upload_image, name='upload_image'),
]